﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability_2203.Common.Infrastructure.interFaces;

namespace Traceability_2203.Common.Infrastructure.Repostories
{

   
    public class LIdentityService : IdentityService
    {

        private readonly IHttpContextAccessor _HttpContextAccessor;

        public LIdentityService(IHttpContextAccessor httpContextAccessor)
        {
            _HttpContextAccessor = httpContextAccessor;
        }

        public string userid { 
            get => _HttpContextAccessor.HttpContext.User.FindFirst("UserId").Value; 
            set => throw new NotImplementedException(); }
        public string password {
            get => _HttpContextAccessor.HttpContext.User.FindFirst("Username").Value; 
            set => throw new NotImplementedException(); }
    }
}
